package test.threadlocal;

public class MyDispatcherServlet {
    private MyHandlerMapping handlerMapping=new MyHandlerMapping();
    private MyHandlerAdapter handlerAdapter=new MyHandlerAdapter();
    public void service() {
        System.out.println("[前端控制器]执行方法");
        handlerMapping.getHandler();
        System.out.println("[前端控制器]询问映射器完毕");
        handlerAdapter.execute();
    }
}
